<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link href="themes01/default/clientPublic.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/codeMgr.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/tabSwitch.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="javascripts01/jquery.js"></script>
<script type="text/javascript" src="javascripts01/common.js"></script>
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body>
<div id="Holder">
<div id="MainPage">

 
 
<div id="Subnav">
 
<ul>
<?php
if($_GET["muid"]==''){
//定义标题
if ($_GET[otype]=='1'){
$news_title='会议室设置';
$muid=10;
$nums=75;
////
}elseif($_GET[otype]=='2'){
$news_title='会议类别设置';
$muid=10;
$nums=75;
}elseif($_GET[otype]=='4'){
$news_title='知识类别设置';
$muid=9;
$nums=64;
}else{
}
}else{
////////////////
$rs = $db->fetch_one_array("SELECT * FROM ".DB_TABLEPRE."menu where menuid='".$_GET["muid"]."' and menutype='0' ORDER BY menunum Asc");
$muid=$rs["fatherid"];
$nums=$_GET["muid"];
}
//====================
global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."menu where fatherid='".$muid."' and menutype='0' ORDER BY menunum Asc");
	while ($row = $db->fetch_array($query)) {
?>
<li><a href="<?=$row[menuurl]?>"  <? if($nums==$row[menuid]){?> id="Subnavb"<? }?>><?=$row[menuname]?></a></li>
<?php
	}
	
?>


</ul>
</div>
<div id="MainBody">

<form name="update" method="post" action="?ac=type&fileurl=office&otype=<?=$otype?>&do=update&muid=<?=$_GET["muid"]?>&numberid=<?=$_GET['numberid']?>">
<div id="CodeWrap">
<div id="TabSwitch">
<ul>
<?php if($_GET["muid"]==''){?>
<li class="active"><a href="admin.php?ac=type&fileurl=office&otype=<?=$_GET[otype]?>"><?=$news_title?></a></li>
<?php }else{?>
<?php
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."menu where fatherid='".$_GET["muid"]."' and menutype='0' ORDER BY menunum Asc");
	while ($row = $db->fetch_array($query)) {
?>
<li <?php if($_GET['numberid']==$row[menuid]){?>class="active"<?php }?>><a href="admin.php?ac=type&fileurl=office&otype=<?=$row["menunum"]?>&muid=<?=$_GET["muid"]?>&numberid=<?=$row[menuid]?>"><?=$row[menuname]?></a></li>

<?php

	}
}
	
?>
</ul>

 
</div>
<div id="CodeShowBlockWrap">
<div id="QueryBar">
<div id="FilterWrap">
<label for="FilterStatus"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
  <tr>
    <td width="15%"></td>
    <td width="85%" align="left">&nbsp;&nbsp;&nbsp;&nbsp;</td>
  </tr>
</table>
</label>
</div>
</div>

<div id="CodeShowBlock">
<table cellpadding="0" cellspacing="0" class="data-box"><thead>
<tr class="border-in">
<th width="36"><div>序号</div></th>
<th class="title"><div>名称</div></th>
<th class="status"><div>操作</div></th>
</tr>
</thead><tbody>

<?foreach ($result as $row) {?>
<tr class="data-box-row"><td width="36" align="center"><?=$row['oid']?></td>
<td class="title"><input type="text" name="name[<?=$row['oid']?>]" value="<?=$row['oname']?>" />
						</td>
<td class="scale"><a href="?ac=type&fileurl=office&otype=<?=$otype?>&do=delete&id=<?=$row['oid']?>&muid=<?=$_GET["muid"]?>&numberid=<?=$_GET[numberid]?>" >删除</a></td>
					
						
						</tr>
<?}?>
<tr class="data-box-row"><td width="36" align="center"></td>
<td class="title"></td>
<td class="scale"></td>
					
						
						</tr>

</tbody></table>
 
</div>
<div id="PageControl">
<div class="page-control">
<div class="border-in">
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
  <tr>
    <td width="80%">新 增&nbsp;<input type="text" name="newname" value="" />&nbsp;&nbsp;<input type="submit" name="Submit" value="保 存" class="submit"></td>
    <td width="20%" align="left">&nbsp;&nbsp;&nbsp;&nbsp;</td>
  </tr>
</table>
  

</div>
</div>
</div>
</div>
</div>
 </form>
</div>
</div>
</div>
 
<script language="javascript" src="javascripts01/tangram-1.3.1.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/elf.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/union.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/codeMgr.js" type="text/javascript"></script>
 
</body>
</html>
